<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

<div class="easyui-layout" fit="true" id="addApplyForm">
 <t:formvalid formid="formobj" dialog="true"  layout="table" action="groupPRController.do?createQueryTask" beforeSubmit="checkData()" >
 
    <div region="center"  style="height:35px;padding: 0px;border:0px;" >
	        <table style="width: 100%;" cellpadding="5" cellspacing="1" class="formtable" align="center">
		         	
				<tr height="35">
					<td  width="25%" align="center"><label class="Validform_label">请选择开始日期 </label></td>
					<td  class="value" width="75%">
					     <input class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width: 65%;" id="queryStartDay"
						       name="queryStartDay" ignore="ignore" value="${minDate }">
					
					   <%--   <input class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'${minDate }',maxDate:'${maxDate }'})" style="width: 65%;" id="queryDay"
						       name="queryDay" ignore="ignore" value="${minDate }"> --%>
		            </td>
				</tr>	
				<tr height="35">
					<td  width="25%" align="center"><label class="Validform_label">请选择结束日期 </label></td>
					<td  class="value" width="75%">
					     <input class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width: 65%;" id="queryEndDay"
						       name="queryEndDay" ignore="ignore" value="${minDate }">
					
					   <%--   <input class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'${minDate }',maxDate:'${maxDate }'})" style="width: 65%;" id="queryDay"
						       name="queryDay" ignore="ignore" value="${minDate }"> --%>
		            </td>
				</tr>					        
	        </table>
     </div>
  
   
  </t:formvalid>

</div>

<script type="text/javascript">
 function checkData(){
	 var queryStartDay = $('#queryStartDay').val();
	 var queryEndDay = $('#queryEndDay').val();
	 if(queryStartDay>queryEndDay){
		 $.messager.alert('&nbsp;&nbsp;信息提醒','开始日期不能大于结束日期！', 'info');
		 return false;
	 }
	 return true;
 }
</script>

